//
//  GenRecordCell.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/4/22.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "GenRecordCell.h"

@implementation GenRecordCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        UILabel *oneLab = [[UILabel alloc] init];
        oneLab.text = @"跟进日期:";
        oneLab.textColor = [UIColor blackColor];
        oneLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:oneLab];
        [oneLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(60, 20));
            make.left.equalTo(self.mas_left).offset(10);
            make.top.equalTo(self.mas_top).offset(5);
        }];
        
        _genLab = [[UILabel alloc] init];
        _genLab.text = @"2017-09-30";
        _genLab.textColor = [UIColor blackColor];
        _genLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_genLab];
        [_genLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(100, 20));
            make.left.equalTo(oneLab.mas_right).offset(5);
            make.top.equalTo(self.mas_top).offset(5);
        }];

        UILabel *twoLab = [[UILabel alloc] init];
        twoLab.text = @"回馈信息:";
        twoLab.textColor = [UIColor blackColor];
        twoLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:twoLab];
        [twoLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(60, 20));
            make.left.equalTo(self.mas_left).offset(10);
            make.top.equalTo(oneLab.mas_bottom).offset(8);
        }];
        

        _HuiLab =  [[UILabel alloc] init];
        _HuiLab.text = @"挺好的,下次再来详细的谈";
        _HuiLab.textAlignment = NSTextAlignmentLeft;
        _HuiLab.numberOfLines = 0;
        _HuiLab.textColor = [UIColor blackColor];
        _HuiLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_HuiLab];
        [_HuiLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(twoLab.mas_right).offset(5);
            make.right.equalTo(self.mas_right).offset(-5);
            make.top.equalTo(oneLab.mas_bottom).offset(8);
          
        }];
        

        UILabel *thrLab = [[UILabel alloc] init];
        thrLab.text = @"下次跟进:";
        thrLab.textColor = [UIColor blackColor];
        thrLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:thrLab];
        [thrLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(60, 20));
            make.left.equalTo(self.mas_left).offset(10);
            make.top.equalTo(_HuiLab.mas_bottom).offset(8);
            make.bottom.equalTo(self).with.offset(-10);
        }];
        
        _XiaLab =  [[UILabel alloc] init];
        _XiaLab.text = @"2017-11-09";
        _XiaLab.numberOfLines = 0;
        _XiaLab.textColor = [UIColor blackColor];
        _XiaLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_XiaLab];
        [_XiaLab mas_makeConstraints:^(MASConstraintMaker *make) {
             make.size.mas_equalTo(CGSizeMake(100, 20));
            make.left.equalTo(thrLab.mas_right).offset(5);
            make.top.equalTo(_HuiLab.mas_bottom).offset(8);
            make.bottom.equalTo(self).with.offset(-10);
            // make.height.equalTo(40);
        }];
        
        
        
        
        
        
        
    }
    return self;
}

-(void)setupGenJinJiLuCellWithGenLab:(NSString *)_gen withHuiKuiLab:(NSString *)_hui withXiaLab:(NSString *)_xia
{
    _genLab.text = _gen;
    _HuiLab.text = _hui;
    _XiaLab.text = _xia;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
